
#pragma once

#include "OGRE\ExampleApplication.h"


class MyFrameListener : public Ogre::FrameListener
{
public:
	MyFrameListener(Ogre::SceneNode*, Ogre::Entity*, RenderWindow*, Ogre::Camera*);
	~MyFrameListener();

	bool frameStarted(const Ogre::FrameEvent&);

private:
	Ogre::SceneNode* _node;
	Ogre::Camera* _Cam;
	Ogre::PolygonMode _PolyMode;
	Ogre::Timer _timer;

	Ogre::Entity* _ent;
	Ogre::AnimationState* _aniState;
	Ogre::AnimationState* _aniStateTop;

	OIS::InputManager* _man;
	OIS::Keyboard* _key;
	OIS::Mouse* _mouse;

	float _movementspeed;
	float _WalkingSpeed;
	float _rotation;
};